import request from '@/utils/request'

export function dsLeft(query) {
  return request({
    url: 'https://star.afufintech.com/deepSearch/getSearchItemList?ajax=XMLHttpRequest&flowId=7333843484484608&userid=xzhTest5&sign=a8639bc5a57df9791154d411851c7b3b',
    method: 'get',
    params: query
  })
}
export function detailRight(query) {
  return request({
    url: 'https://star.afufintech.com/deepSearch/getSearchResultList?ajax=XMLHttpRequest&itemSid=4184&pageSize=30&pageNum=1',
    // url: 'https://star.afufintech.com/deepSearch/getSearchResultList?',
    method: 'get',
    params: query
  })
}
export function getAPPList(query) {
  return request({
    url: '/task/getAPPList',
    method: 'post',
    params: query
  })
}
export function fetchList(query) {
  return request({
    url: '/task/getTaskList',
    method: 'post',
    params: query
  })
}
export function getTaskInfo(query) {
  return request({
    url: '/task/getTaskInfo',
    method: 'post',
    params: query
  })
}
export function delTask(query) {
  return request({
    url: '/task/delTask',
    method: 'post',
    params: query
  })
}
export function addTask(query) {
  return request({
    url: '/task/addTask',
    method: 'post',
    params: query
  })
}
export function getTaskStatusByAppId(query) {
  return request({
    url: '/task/getTaskStatusByAppId',
    method: 'post',
    params: query
  })
}
export function getUserListByAppId(query) {
  return request({
    url: '/task/getUserListByAppId',
    method: 'post',
    params: query
  })
}
export function getLocation(query) {
  return request({
    url: '/task/getLocation',
    method: 'post',
    params: query
  })
}

export function fetchArticle(id) {
  return request({
    url: '/article/detail',
    method: 'get',
    params: { id }
  })
}

export function fetchPv(pv) {
  return request({
    url: '/article/pv',
    method: 'get',
    params: { pv }
  })
}

export function createArticle(data) {
  return request({
    url: '/article/create',
    method: 'post',
    data
  })
}

export function updateArticle(data) {
  return request({
    url: '/article/update',
    method: 'post',
    data
  })
}



// 工单状态变化列表
export function getChangeList(data) {
  return request({
    url: '/workList/statusChangeList',
    method: 'post',
    data
  })
}

// 电话核查 --新增电话
export function addNewTel(data){
  return request({
    url:"/task/callCheck/addPhone",
    method:"post",
    data
  })
}

//电话核查 -- 拨打记录--点击呼叫 时调用
export function dialingRecord(data){
  return request({
    url:"/task/callCheck/addRecord",
    method:"post",
    data
  })
}

//电话核查--拨打结果--用于保存拨打结果
export function dialingResult(data){
  return request({
    url:"/task/callCheck/result",
    method:"post",
    data
  },'json')
}

//电话核查 数据
export function getCheckAndLookInf(data){
  return request({
    url:"/task/detail",
    method:"post",
    data
  })
}

// 外部信息核查人工审核意见表--保存

export function saveOuterAdvice(data){
  return request({
    url:"/task/deepSearch/updateAdvice",
    method:"post",
    data
  },'json')
}